package com.libnetwork.models.apiresult

import com.google.gson.annotations.JsonAdapter
import com.libnetwork.httpservice.HttpService

data class APIResult<T>(val code: Int, val message: String?, val data: T?) {
    fun isSuccess(): Boolean {
        return code == HttpService.successCode
    }
}